package com.example.schooljava.mapper;

import com.example.schooljava.pojo.entity.Curriculum;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.schooljava.pojo.bo.CurriculumBO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LDH
 * @since 2022/08/11
 */
@Mapper
public interface CurriculumMapper extends BaseMapper<Curriculum> {

    List<Curriculum> getCurriculum(CurriculumBO curriculumBO);

    @Select("SELECT DISTINCT name FROM curriculum")
    List<String> getAllCurr();
}
